<template>
  <div>
	 <mv-list :mvList="mvList"></mv-list>
  </div>
</template>

<script>
import {_Search} from "network/search.js"
import MvList from '@/components/content/mv-list/mv-list'
import {sreach} from '@/mixin/components/sreach'

export default {
  name:'SearchMv',
  components:{MvList},
  mixins:[sreach],
  data(){
    return{
      searchType:1004,
      mvCount:0,
      keywords:'',
      mvList:[],
    }
  },
  methods:{
   getList(){
   	   if (this.keywords == "") return;
   	   this.mvList = [];
   	  _Search(this.keywords, this.searchType).then(res=>{
   			 this.mvList = res.data.result.mvs
   	  		this.mvCount=res.data.result.mvs.length;
   	  		this.$emit('setData',this.mvCount,"MV")
   	  })
   },
  }
}
</script>

<style lang="less" scoped>

</style>
